{% extends 'store_admin/web_store/pages.html' %}
{% load i18n %}

{% block title_sub_menu %}Home page{% endblock %}

{% block main_pages %}
	
	<form name="form" method="post" action="." enctype="multipart/form-data">
	
		<h4>{% trans "Page Title" %}:</h4>
		{% if form.title.errors %}<div class="error">{{ form.title.errors|join:", " }}</div>{% endif %}
		{{ form.title }}
		<br/>
		<br/>
		
		{% if form.body.errors %}<div class="error">{{ form.body.errors|join:", " }}</div>{% endif %}
		{{ form.body }}	
		<br/>
		<br/>
		
		<h4>{% trans "Put the Meta-Content here (for SEO purposes)" %}:</h4>
		{% if form.meta_content.errors %}<div class="error">{{ form.meta_content.errors|join:", " }}</div>{% endif %}
		{{ form.meta_content }}	
		<br/>

		<h4>{% trans "Image" %}:</h4>
		{% if home.image %}
			<img src="{{ home.image.url }}" width=320px/><br/>
		{% endif %}
		{% if form.image.errors %}<div class="error">{{ form.image.errors|join:", " }}</div>{% endif %}
		{{ form.image }}
		<br/>
		<br/>
		<br/>

		<button type="submit" class="large awesome">{% trans "Save" %}</button>
		<a href="{% url web_store_pages %}" class="link_cancel">{% trans "Or Cancel" %}</a>
	</form>

{% endblock %}

